<extend name="Public/base" />
<block name="style"> <script type="text/javascript"
	src="__STATIC__/highcharts/js/highcharts.src.js"></script> <script
	type="text/javascript"
	src="__STATIC__/highcharts/js/modules/exporting.src.js"></script> </block>
<block name="body"> <!-- 标题栏 -->

<div class="main-title">
	<h2>图表PIE示例</h2>
</div>

<div id="container"
	style="min-width: auto; height: auto; margin: 0 auto"></div>
</block>

<block name="script"> <script type="text/javascript">
	$(function() {
		$('#container')
				.highcharts(
						{
							chart : {
								plotBackgroundColor : null,
								plotBorderWidth : null,
								plotShadow : true,
								backgroundColor : '#ffffff'
							},
							title : {
								text : '某题库题型百分率'
							},
							tooltip : {
								formatter: function() {
				                    return '<b>' + this.point.name + ':'+ this.point.y +'</b>';
				                }
							},
							plotOptions : {
								pie : {
									allowPointSelect : true,
									cursor : 'pointer',
									showInLegend : true ,
									dataLabels : {
										enabled : true,
										color : '#000000',
										connectorColor : '#000000',
										format : '<b>{point.name}</b>: {point.percentage:.1f} %'
									}
								}
							},
							series : [ {
								type : 'pie',
								name : '试题类型',
								data : [{$questiontype}]

							} ]
						});
	});
</script> </block>
